package com.example.demo.enums;

/**
 * Created by gf on 2018/10/20.
 */
public enum StudentExceptionCode {

    PRIMARY_SCHOOL(100,"你还在上小学吧"),
    MIDDLE_SCHOOL(101,"你还在上中学吧"),
    ;

    private int code;
    private String desc;

    StudentExceptionCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
